package com.firefly.mobile.app.main;

import android.os.Handler;
import android.os.Message;

public class MainHandler extends Handler{
	
	private static FireflyMobileActivity context;
	public static String JS_EXEC = "jsExec";
	public static String CKECK_VERSION = "checkVersion";
	
	
	
	
	public MainHandler(FireflyMobileActivity context) {
		super();
		MainHandler.context = context;
	}
	@Override
	public void handleMessage(Message msg) {
		String playType = msg.getData().getString("playType");
		if (playType.equals(JS_EXEC)) {
			String js = msg.getData().getString("js");
			context.loadUrl("javascript:"+js);
		}
	}
	
}
